<?php
namespace API\Model;
use Think\Model\RelationModel;
/**
* post数据映射
*/
class RpostModel extends RelationModel
{
	protected  $_link = array(
           "users" =>array(
           	 'mapping_type'  => self::BELONGS_TO,
           	 'class_name'    => 'Users',
           	 'foreign_key'   => 'uid',
           	 'mapping_name'  => 'uname',
           	 'as_fields' => 'uname',
           	),
		);
	
}